{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <table>
        <tr>
          <td width="15" nowrap>
            <a href="{$PHPSELF}?mod={$mod}&action=create"><img src="skins/{$DefaultSkin}/images/add.png" style="border: 0px; vertical-align: bottom;" alt="Create New FAQ" title="Create New Question"></a>
          </td>
          <td align="center" width="100%">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.png">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">title & desc</td>
    <td class="row3 two" nowrap>post details</td>
    <td class="row3 two" nowrap><center>status</center></td>
    <td class="row3 two"><center>faq</center></td>
    <td class="row3 two"><center>category</center></td>
    <td class="row3 two" nowrap><center>order</center></td>
    <td class="row3 two" colspan="2" nowrap><center>questions actions</center></td>
  </tr>
  {section name=QNListing loop=$QNListing}
  <tr>
    <td class="row{$QNListing[QNListing].qn_row} one">{$QNListing[QNListing].qn_id}</td>
    <td class="row{$QNListing[QNListing].qn_row} two">
      <h3>{$QNListing[QNListing].qn_desc}</h3>
      {if $QNListing[QNListing].qn_ans != ''}
        {$QNListing[QNListing].qn_ans|truncate:250}
      {else}
        <font style="color: #FF0000;"><b>No Answer!!</b></font>
      {/if}
    </td>
    <td class="row{$QNListing[QNListing].qn_row} two" nowrap>
      {$QNListing[QNListing].qn_posted_by}<br />
      {$QNListing[QNListing].qn_posted_email} (<a href="{$PHP_SELF}?mod={$mod}&action=ban&posted={$QNListing[QNListing].qn_posted_email}&type=email">ban</a>)<br />
      {$QNListing[QNListing].qn_ip} (<a href="{$PHP_SELF}?mod={$mod}&action=ban&posted={$QNListing[QNListing].qn_ip}&type=ip">ban</a>)<br />
      {$QNListing[QNListing].qn_posted_time|date_format:"%D %r"}
    </td>
    <td class="row{$QNListing[QNListing].qn_row} two" nowrap>
      {if $QNListing[QNListing].qn_status == '1'}
        <a href="{$PHP_SELF}?mod={$mod}&action=chstatus&qn={$QNListing[QNListing].qn_id}&posted=0">disable</a>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}&action=chstatus&qn={$QNListing[QNListing].qn_id}&posted=1">enable</a>
      {/if}
    </td>
    <td class="row{$QNListing[QNListing].qn_row} one"><a href="{$PHP_SELF}?mod={$mod}&faq={$QNListing[QNListing].qn_f_id}">{$QNListing[QNListing].qn_f_title}</a></td>
    <td class="row{$QNListing[QNListing].qn_row} one"><a href="{$PHP_SELF}?mod={$mod}&faq={$QNListing[QNListing].qn_f_id}&ca={$QNListing[QNListing].qn_c_id}">{$QNListing[QNListing].qn_c_title}</a></td>
    <td class="row{$QNListing[QNListing].qn_row} one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=-15&qn={$QNListing[QNListing].qn_id}">move up</a><br />
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=15&qn={$QNListing[QNListing].qn_id}">move down</a>
    </td>
    <td class="row{$QNListing[QNListing].qn_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=modify&qn={$QNListing[QNListing].qn_id}">{if $QNListing[QNListing].qn_ans != ''}modify{else}<font style="color: #FF0000;">answer</font>{/if}</a></td>
    <td class="row{$QNListing[QNListing].qn_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=delete&qn={$QNListing[QNListing].qn_id}">delete</a></td>
  </tr>
  {/section}
</table>

<center>Please Note: Questions and Answers are stripped of HTML and Truncated for the Listing Page!! Modify the Q&A to see full details.</center>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}